package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class GoodsAllKindTwo implements Serializable {

    public  GoodsAllKindTwo(){};

    public GoodsAllKindTwo(String goodsKindTwo) {
        this.goodsKindTwo = goodsKindTwo;
    }

    public GoodsAllKindTwo(String goodsKindId, String goodsKindTwo) {
        this.goodsKindId = goodsKindId;
        this.goodsKindTwo = goodsKindTwo;
    }

    /**
     *
     *一级分类id
     */
    private Integer id;

    /**
     *
     *商品分类一的id
     */
    @NotNull
    private String goodsKindId;

    /**
     *
     *商品分类二
     */
    @NotNull
    private String goodsKindTwo;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsKindId() {
        return goodsKindId;
    }

    public void setGoodsKindId(String goodsKindId) {
        this.goodsKindId = goodsKindId == null ? null : goodsKindId.trim();
    }

    public String getGoodsKindTwo() {
        return goodsKindTwo;
    }

    public void setGoodsKindTwo(String goodsKindTwo) {
        this.goodsKindTwo = goodsKindTwo == null ? null : goodsKindTwo.trim();
    }
}